require 'watir'
include Watir
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'watir/testUnitAddons'
require 'watir/testcase'
require 'watir/contrib/enabled_popup'

class TC_Admin < Test::Unit::TestCase
  def test_13

    $ie.goto($UniVar)
    $ie.refresh()
    $ie.refresh()
    
    $ie.link(:text, 'Control Panel').click
    $ie.link(:text, 'Administration').click
    $ie.table(:index, 10).click
    $ie.link(:index, 13).click    
    
    $ie.radio(:id, /ctl00_ctl00_TaskRegion_EnableSectionLocalization_0/).set
    $ie.link(:text, 'Save').click
    $ie.link(:text, $ADMIN).click
    $ie.div(:index, 21).click
#    assert($ie.checkbox(:id, /ctl00_bcr_ctl00___FilterLanguageList_0/).exists?)
    assert($ie.checkbox(:id, /ctl00_bcr_ctl03_ctl02_ctl65_ctl02_FilterLanguageList_0/).exists?)

    $ie.link(:text, 'Control Panel').click
    $ie.link(:text, 'Administration').click
    $ie.table(:index, 10).click
    $ie.link(:index, 13).click    
    
    $ie.radio(:id, /ctl00_ctl00_TaskRegion_EnableSectionLocalization_1/).set
    $ie.link(:text, 'Save').click
  end
end